module(...,package.seeall)
import "android.animation.ObjectAnimator"
import "android.view.animation.DecelerateInterpolator"
import "android.view.animation.AccelerateInterpolator"


function openElevation(card,elevation)
  ObjectAnimator.ofFloat(card or activity.ActionBar, "elevation", {elevation})
  .setDuration(200)
  .setInterpolator(DecelerateInterpolator())
  .start()
end
function closeElevation(card)
  ObjectAnimator.ofFloat(card or activity.ActionBar, "elevation", {0})
  .setDuration(200)
  .setInterpolator(AccelerateInterpolator())
  .start()
end

--return ActionBarAnim